package cn.itcast.myapplication.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.webkit.WebView;

import cn.itcast.myapplication.R;

public class WedViewDemo extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wed_view_demo);

        WebView myWebView = new WebView(this);

        setContentView(myWebView);

        WebView myWebView1 = (WebView) findViewById(R.id.webview);

        myWebView1.loadUrl("https://www.baidu.com/");

    }


}